.vxp-dropdown {
  @include basis;

  display: inline-block;

  & & {
    width: 100%;
  }

  &__popper {
    @include basis;

    z-index: $vxp-z-index-popper;
    display: flex;
    padding: 5px 0;

    &--nested {
      padding: 0;
    }
  }

  &__list {
    display: inline-block;
    min-width: 5em;
    padding: 0.35em 0;
    margin: 0;
    user-select: none;
    background-color: $vxp-color-fill;
    border-radius: $vxp-border-radius-base;
    box-shadow: $vxp-box-shadow-base;
  }

  &__item {
    position: relative;
    padding: 0.35em 1.2em;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
    background-color: transparent;
    transition: $vxp-transition-background-base;

    &:hover {
      background-color: $vxp-color-fill-hover;
    }

    &--selected {
      &,
      .vxp-icon {
        color: $vxp-color-primary;
      }
    }

    &--disabled {
      color: $vxp-color-fill-disabled;
      cursor: not-allowed;

      &:hover {
        background-color: transparent;
      }
    }

    &--divided {
      margin-bottom: 0.7em;

      &::after {
        position: absolute;
        bottom: calc(-0.35em - 0.5px);
        left: 0;
        display: block;
        width: 100%;
        height: 0;
        content: '';
        border-bottom: $vxp-border-appearance $vxp-color-border-light-2;
      }
    }
  }

  &__trigger--selected &__item {
    background-color: $vxp-color-fill-hover;
  }
}
